
namespace Behemoth.Web.UI {

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Web;
    using System.Web.UI;

    using Behemoth.Reflection;

  public class HttpTools {

    public static void SetFormReadOnly(Page page, bool value) {
      Reflector.SetFieldOrProperty(page.Request.Form, "IsReadOnly", true, value);
    }
    public static bool GetFormReadOnly(Page page) {
      return (bool)Reflector.GetFieldOrProperty(page.Request.Form, "IsReadOnly", true);
    }

  }

}
